Skip to content

Conversation

@akolarkunnu
Copy link
Contributor

Description

Introduced a new setting parameter "plugins.ml_commons.connector.ssl_verification_enabled" to enable/disable ssl verification of llm connectors.

Tested with and without setting this parameter and I am able to connect a lll server by disabling ssl verification.
Added unit tests too.

Related Issues

Resolves #4371

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR - will create it

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ylwu-amzn
Copy link
Collaborator

Thanks for publishing this PR.
Spotless check failed, can you run ./gradlew spotlessApply ?

@ylwu-amzn
Copy link
Collaborator

Introduced a new setting parameter "plugins.ml_commons.connector.ssl_verification_enabled" to enable/disable ssl verification of llm connectors.

Another option: control enable/disable SSL on connector level

@akolarkunnu
Copy link
Contributor Author

Introduced a new setting parameter "plugins.ml_commons.connector.ssl_verification_enabled" to enable/disable ssl verification of llm connectors.

Another option: control enable/disable SSL on connector level

@ylwu-amzn How can we do that? I didn't see any documentation around this?
Can you please give an example how to configure this?

Copy link
Contributor

@rithin-pullela-aws rithin-pullela-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes @akolarkunnu !!

Just one high level concern, we call the flag: connector.ssl_verification_enabled
So it should be applicable to all the connectors.

Can we update the MCP and MCPStreamableHTTP connectors with the same logic for SSL validation? We are using java http client behind the scenes:

            // Create streamable HTTP transport
            McpClientTransport transport = HttpClientStreamableHttpTransport
                .builder(mcpServerUrl)
                .endpoint(endpoint)
                .customizeClient(clientBuilder -> {
                    clientBuilder.connectTimeout(connectionTimeout);
                    clientBuilder.followRedirects(HttpClient.Redirect.NORMAL);
                })
                .customizeRequest(headerConfig)
                .build();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add an option to turn on and off the certificate validation of llm connectors

3 participants